<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人信息</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="__ADMIN__/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/css/personal.css" media="all">
</head>
<body>
<section class="layui-larry-box">
	<div class="larry-personal">
		<header class="larry-personal-tit">
			<span>添加广告</span>
		</header><!-- /header -->
		<div class="larry-personal-body clearfix">
			<form class="layui-form col-lg-5" action="/admin/ad/add" method="post" enctype="multipart/form-data">
                <div class="layui-form-item">
                	<input type="hidden" name="pid" value="{$pid}">
					<label class="layui-form-label">广告标题</label>
					<div class="layui-input-block">  
						<input type="text" name="adname"  lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
					</div>
                </div>
               <!--  <div class="layui-form-item">
                      <label class="layui-form-label">日期选择</label>
                      <div class="layui-input-block">
                        <input type="text" name="addtime" id="date" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input" onclick="layui.laydate({elem: this,istime: true,format: 'YYYY-MM-DD hh:mm:ss'})">
                      </div>
                </div> -->
                <div class="layui-form-item">
					<label class="layui-form-label">广告url</label>
					<div class="layui-input-block">  
						<input type="text" name="ad_url"  lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
					</div>
                </div>
                 <div class="layui-form-item">
					<label class="layui-form-label">选择图片</label>
					<div class="layui-input-block">  
						<input type="file" name="path" lay-verify="required">
					</div>
                </div>
                <div class="layui-form-item">
					<div class="layui-input-block">
					<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
                </div>
            </form>
		</div>
	</div>
</section>
<script type="text/javascript" src="__ADMIN__/layui/layui.js"></script>
<script type="text/javascript">
	layui.use(['form','upload','layedit','laydate','element'],function(){
         var form = layui.form();
         layui.upload({ 
             url: '' ,//上传接口 
             success: function(res){
              //上传成功后的回调 
              console.log(res) 
            } 
         });
	});
</script>
</body>
</html>